﻿/***************************************************************************
*		功能：     员工资料实体类(代码生成工具搞定的)
*		作者：     Hydra
*		日期：     2011-08-11 05:47
*		
*		修改日期：
*		修改人：
*		修改内容：
/* *************************************************************************/
using System;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.IO;
using System.Text;
using System.Data;
using Deeper.DataAccess;
using Deeper.Common;
using Deeper.Common.Web;
using System.Collections.Generic;
namespace ZhongTian.Model
{
	/// <summary>
	/// 员工资料
	/// </summary>
	[Serializable]
	[HTable(TableName = "T_Employee", EntityName = "Employee")]
	public partial class Employee :  IModel
	{
        /// <summary>
        /// 是否新参数
        /// </summary>
        public bool IsNewModel() { return EmployeeID == 0; }

	    #region 所有的字段
	 
	    
		/// <summary>
		/// 员工ID
		/// </summary>
		[HColumn("EmployeeID", Remake = "员工ID", DataType = "int" , IsPrimary = true , IsIdentity = true , IsUniqueness = true)]
		public int EmployeeID { set; get; }
        

		/// <summary>
		/// 岗位
		/// </summary>
		[HColumn("PostionId", Remake = "岗位", DataType = "int")]
		public int PostionId { set; get; }
        

		/// <summary>
		/// 员工姓名
		/// </summary>
		[HColumn("EmployeeName", Remake = "员工姓名", DataType = "nvarchar" , Length =10)]
		public string EmployeeName { set; get; }
        

		/// <summary>
		/// 员工性别
		/// </summary>
		[HColumn("Sex", Remake = "员工性别", DataType = "int")]
		public int Sex { set; get; }
        

		/// <summary>
		/// 出生日期
		/// </summary>
		[HColumn("BrithDay", Remake = "出生日期", DataType = "datetime" , IsNullable = true)]
		public DateTime? BrithDay { set; get; }
        

		/// <summary>
		/// 是否辞职
		/// </summary>
		[HColumn("IsDimission", Remake = "是否辞职", DataType = "bit")]
		public bool IsDimission { set; get; }
        

		/// <summary>
		/// 离职日期
		/// </summary>
		[HColumn("DimissionDay", Remake = "离职日期", DataType = "datetime" , IsNullable = true)]
		public DateTime? DimissionDay { set; get; }
        

		/// <summary>
		/// 工作日期
		/// </summary>
		[HColumn("JoinDate", Remake = "工作日期", DataType = "datetime")]
		public DateTime JoinDate { set; get; }
        

		/// <summary>
		/// 宅电
		/// </summary>
		[HColumn("Tel", Remake = "宅电", DataType = "nvarchar" , Length =40 , IsNullable = true)]
		public string Tel { set; get; }
        

		/// <summary>
		/// 移动电话
		/// </summary>
		[HColumn("MobileTel", Remake = "移动电话", DataType = "nvarchar" , Length =40 , IsNullable = true)]
		public string MobileTel { set; get; }
        

		/// <summary>
		/// 住址
		/// </summary>
		[HColumn("Addres", Remake = "住址", DataType = "nvarchar" , Length =200 , IsNullable = true)]
		public string Addres { set; get; }
        

		/// <summary>
		/// 身份证
		/// </summary>
		[HColumn("IDCard", Remake = "身份证", DataType = "nvarchar" , Length =18 , IsNullable = true)]
		public string IDCard { set; get; }
        



        public class F
        {
    		 
			 /// <summary>
			 /// 员工ID
			 /// </summary>
			 public static Field EmployeeID = new Field("T_Employee","EmployeeID");
	    	 

			 /// <summary>
			 /// 岗位
			 /// </summary>
			 public static Field PostionId = new Field("T_Employee","PostionId");
	    	 

			 /// <summary>
			 /// 员工姓名
			 /// </summary>
			 public static Field EmployeeName = new Field("T_Employee","EmployeeName");
	    	 

			 /// <summary>
			 /// 员工性别
			 /// </summary>
			 public static Field Sex = new Field("T_Employee","Sex");
	    	 

			 /// <summary>
			 /// 出生日期
			 /// </summary>
			 public static Field BrithDay = new Field("T_Employee","BrithDay");
	    	 

			 /// <summary>
			 /// 是否辞职
			 /// </summary>
			 public static Field IsDimission = new Field("T_Employee","IsDimission");
	    	 

			 /// <summary>
			 /// 离职日期
			 /// </summary>
			 public static Field DimissionDay = new Field("T_Employee","DimissionDay");
	    	 

			 /// <summary>
			 /// 工作日期
			 /// </summary>
			 public static Field JoinDate = new Field("T_Employee","JoinDate");
	    	 

			 /// <summary>
			 /// 宅电
			 /// </summary>
			 public static Field Tel = new Field("T_Employee","Tel");
	    	 

			 /// <summary>
			 /// 移动电话
			 /// </summary>
			 public static Field MobileTel = new Field("T_Employee","MobileTel");
	    	 

			 /// <summary>
			 /// 住址
			 /// </summary>
			 public static Field Addres = new Field("T_Employee","Addres");
	    	 

			 /// <summary>
			 /// 身份证
			 /// </summary>
			 public static Field IDCard = new Field("T_Employee","IDCard");
	    	 

        }
        #endregion
		  
	 
	}
    
}